package com.zc.edu.client;

import com.zc.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "service-vod", fallback = VodClientImpl.class)
@Component
public interface VodClient {
	@DeleteMapping("/vodService/video/deleteVideo/{videoId}")
	public R deleteVideo(@PathVariable("videoId") String videoId);

	@DeleteMapping("/vodService/video//deleteVideoList")
	public R deleteVideoList(@RequestParam List<String> videoIdList);
}
